/*******************************************************************************
 * Copyright (c) 2007 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 ******************************************************************************/

package org.reliablesource.pleiades;

/**
 * @since 3.2
 * 
 */
public class ReliableTextRange extends AbstractReliableRange {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	protected String content;
	protected int start;
	protected int end;

	public ReliableTextRange() {
		super();
	}

	public ReliableTextRange(String _content, final int _start, final int _end) {
		this(_content, _start);
		setEnd(_end);
	}

	public ReliableTextRange(final int _start, final int _end) {
		super();
		setStart(_start);
		setEnd(_end);
	}

	public ReliableTextRange(final String _content, final int _start) {
		this(_content);
		setStart(_start);
	}

	public ReliableTextRange(final String _content) {
		super();
		setContent(_content);
	}

	public String getContent() {
		return content;
	}

	public int getStart() {
		return start;
	}

	public int getEnd() {
		return end;
	}

	protected void setContent(String _content) {
		content = _content;
	}

	protected void setStart(int _start) {
		start = _start;
	}

	protected void setEnd(int _end) {
		end = _end;
	}
}
